package com.xiao.tripmateai;

import com.xiao.tripmateai.service.StockService;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@MapperScan("com.xiao.tripmateai.mapper")
public class TripChatAIApplication {

    public static void main(String[] args) {
        SpringApplication.run(TripChatAIApplication.class, args);
    }

//    /**
//     * 配置时间查询工具，将TimeService中的方法注册为AI可调用工具
//     * @param timeService 时间服务实例
//     * @return 工具回调提供者
//     */
//    @Bean
//    public ToolCallbackProvider timeTools(TimeService timeService) {
//        return MethodToolCallbackProvider.builder().toolObjects(timeService).build();
//    }
    @Bean
    public StockService stockService() {
        return new StockService();
    }
}
